### 5.8.1 Attendance Statistics

Rules for selecting the check-in/out time

The check-in time should select the time that is earlier than and closest to the due check-in time. For example, when you check in at 8:55 and 9:01, it is considered that you check in at 8:55. The check-out time should select the time that is later than and closest to the due check-out time. For example, the due check-out time is 18:00, if you check out at 18:01 and 18:20, it is taken that you check out at 18:01.

Calculation process

First determine the shift of each employee on a day, then determine the work type on that day, then select the check-in/out time and the leave list; then select the compensatory leave information. When selecting the work type, only the holiday settings of 100 days prior to the current day can be selected. Select the attendance parameters, calculate the attendance results, and save the results to the database.

Calculation prerequisites

The attendance calculation date should be later than the entry date and calculation is only made when Enable Attendance Function is set to Yes. If attendance check is not required for an employee, no attendance data of the employee will be displayed in the attendance calculation.

Work type judgment rules

If there is no schedule or temporary schedule, the system considers the day as a rest day, and calculate the attendance of the current day using the flexible shift. If Auto OT is selected, the overtime is calculated based on the settings of the attendance parameters, and the calculation result is rounded based on the rounding rules. If the work time of the timetable is set to zero, it is considered that the timetable is overtime, which will be calculated as the daily overtime.

Rounding rules

The rounding rules include rounding down, rounding off and rounding up:

For rounding down, when the remainder of the value of a calculated item exceeds the minimum unit, the system automatically truncates the remainder.

For rounding off, when the remainder of the value of a calculated item exceeds half of the minimum unit, the value will be increased by a minimum unit; if the remainder of the value of a calculated item is less than half of the minimum unit, the remainder will be directly abandoned.

For rounding up, if the remainder of the value of a calculated item exceeds the minimum unit, the value will be increased by a minimum unit.

Scheduling principle

1. When there is a normal schedule, the system considers the day as a workday. However, if there is a temporary schedule, the timetable of the additional temporary schedule will be considered as the normal working hours by the system.

2. If there is no existing schedule or temporary schedule, the system considers the day as a rest day. The system will not calculate the attendance for employees who come to work.

3. If there is no existing schedule but a temporary schedule is arranged, the temporary schedule will be considered as the normal working hours.

4. Determining whether there is existing scheduling first:

(1) Calculate the attendance based on a schedule if any, and check whether there is a temporary schedule. If yes, check whether Only temporary scheduling is effective or Add after the existing scheduling is selected for calculating the attendance. The work type of the temporary schedule can be designated during temporary scheduling.

(2) If there is no schedule, check whether there is a temporary schedule.

(3) If there is no schedule or temporary schedule, the attendance is not calculated.

5. The attendance is not calculated when there is no schedule.